package com.kcht.sylyg08.service.model;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @program: G08ProductionLine
 * @description 给Mes系统发送数据的格式，对方要求首字母小写
 * @author: X.Gao
 * @create: 2019-08-08 15:31
 **/
public class command {

    //EPC编码-RFID标签读取内容
    private String epcCode;
    //工位编码
    private String staCode;
    //工位进出标识，进工位用1，出工位用2，出工位并且进下一工位用3
    private String flag;
    //采集时间
    private String datetime;
    //系统收到时间
    private String systemTime;
    public String getEpcCode() {
        return epcCode;
    }

    public void setEpcCode(String epcCode) {
        this.epcCode = epcCode;
    }

    public String getStaCode() {
        return staCode;
    }

    public void setStaCode(String staCode) {
        this.staCode = staCode;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(Date date) {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.datetime = dateFormat.format(date);
    }

    public String getSystemTime() {
        return systemTime;
    }

    public void setSystemTime(Date date) {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.systemTime = dateFormat.format(date);
    }
}
